Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Linq
Imports System.Text
Imports System.Windows.Forms

Public Partial Class DetailForm
	Inherits Form
	Public Sub New()
		InitializeComponent()
	End Sub

	Friend Sub ReadIndividual(individual As Individual)
		tbFirstname.Text = individual.FIRSTNAME
		tbMiddlename.Text = individual.MIDDLENAME
		tbLastname.Text = individual.LASTNAME
		tbDateOfBirth.Text = individual.DOB.ToShortDateString()
		tbState.Text = individual.STATE
	End Sub

	Friend Sub WriteIndividual(individual As Individual)
		individual.FIRSTNAME = tbFirstname.Text
		individual.MIDDLENAME = tbMiddlename.Text
		individual.LASTNAME = tbLastname.Text
		DateTime.TryParse(tbDateOfBirth.Text, individual.DOB)
		individual.STATE = tbState.Text
	End Sub

End Class
